Detect the readline support for Python shell completion
authorLiu Hui <liuhui1610@gmail.com>
Mon, 26 Feb 2024 10:46:36 +0000 (18:46 +0800)
committerBasil L. Contovounesios <basil@contovou.net>
Thu, 14 Mar 2024 14:09:56 +0000 (15:09 +0100)
commita7057745f5ef903a2655c6d9e7813168e361baf7
tree96c9ebebdd1a3f8c2ffcc2405c3f2961fedadb18
parentc94d680f6eb46a47549633c7076fe32660b3cd42
Detect the readline support for Python shell completion

* lisp/progmodes/python.el
(python-shell-comint-watch-for-first-prompt-output-filter):
Detect the readline support.
(python-shell-readline-completer-delims): Update docstring.
(python-shell-completion-native-setup): Move the readline
detection code to ...
(python-shell-readline-detect): ... new function.
(python-shell-completion-native-turn-on-maybe): Skip if Python
has no readline support.
(python-shell-completion-at-point): Respect the delimiter of
readline completer in non-native completion.
* test/lisp/progmodes/python-tests.el
(python-shell-completion-at-point-1)
(python-shell-completion-at-point-native-1)
(python-completion-at-point-1, python-completion-at-point-2)
(python-completion-at-point-pdb-1)
(python-completion-at-point-while-running-1)
(python-completion-at-point-native-1)
(python-completion-at-point-native-2)
(python-completion-at-point-native-with-ffap-1)
(python-completion-at-point-native-with-eldoc-1): Skip tests if
Python has no readline support.
(python-shell-completion-at-point-jedi-completer): Add test for
non-native Python shell completion. (bug#68559)
lisp/progmodes/python.el
test/lisp/progmodes/python-tests.el